<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
// 批量注册GET路由
Route::any([
        'getbannerlist'  =>  'api/Index/getbannerlist',//首页轮播图接口
        'getleftlist'  =>  'api/Goodsclassify/getleftlist',//首页推荐商户列表
        'getrecommendgooslist'  =>  'api/Index/getrecommendgooslist',//首页（热销/推荐）商品
        'getgoodsclassify'  =>  'api/Index/getgoodsclassify',//首页商品分类栏目列表
        'getrecommendshoplist'  =>  'api/Index/getrecommendshoplist',//首页推荐商户列表
       'shopdetial/:id/:user_id' =>  ['api/Shop/getdetial',[],['id'=>'\d+','user_id'=>'\d+']],//商户详情信息
        'goodsdetial/:id/:user_id' =>  ['api/Goods/getdetial',[],['id'=>'\d+','user_id'=>'\d+']],//商品详情信息
        'getgoodsclassifylist/:id' =>  ['api/Goodsclassify/getgoodsclassifylist',[],['id'=>'\d']],//首页点击商品分类 以及商品分类页面点击左侧栏目
        'getshopclassify'=>'api/Shop/getshopclassify',//店铺页面的分类列表
        'getdiscountlists'=>'api/User/getdiscountlists',//后台发布领红包列表
        'adduserdiscount'=>'api/User/adduserdiscount',//用户抢红包接口
]);